package MediatorPattern;

/**
 * 使用User对象显示它们之间的通信
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("HI！John");

        john.sendMessage("Hello! Robert!");
    }
}
